import { getProjectList } from "@/api";
import { projectPrototypeForm } from "@/utils";
import ScrollListWithFilter from "@/components/ScrollListWithFilter.vue";
import { createVNode } from "vue";

export default createVNode(ScrollListWithFilter, {
  filterFormConfig: projectPrototypeForm,
  getListMethod: getProjectList,
  createButtonProps: { text: "新建项目", href: "#/project/detail/basicinfo" },
  detailPath: (item: Record<string, any>) =>
    `/project/detail/${item.id}/${item.status}/`,
  nameKey: "projectName",
  descKey: "projectDesc",
});
